<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<link href="${base}/res/jeecore/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/jeecore/css/theme.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.validate.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.treeview.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/pony.tree.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.ui.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/jspgou/css/product.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/jspgou/css/reset-min.css" rel="stylesheet" type="text/css"/>

<script src="${base}/thirdparty/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="${base}/res/common/js/jquery.js" type="text/javascript"></script>
<script src="${base}/res/common/js/jquery_ext.js" type="text/javascript"></script>
<script src="${base}/res/common/js/pony.js" type="text/javascript"></script>
<script src="${base}/res/common/js/pony.tree.js" type="text/javascript"></script>
<script src="${base}/res/jeecore/js/admin.js" type="text/javascript"></script>
<script src="${base}/res/jspgou/js/jquery.idTabs.min.js" type="text/javascript"></script>

<script src="${base}/res/common/js/lang/validator-${locale}.js" type="text/javascript"></script>

<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
function emptySingle(id){
	 if(!confirm("您确定要彻底删除该信息吗？")) {
			return;
		}
	 $.post("v_empty.do", {
			"ids" : id
		}, function(data) {
			if(data.result){
				$("#jvForm").submit();
			}else{
				alert("请先登录");
			}
		}, "json");
}
//单条信息到垃圾箱
function trash(id){
	 if(!confirm("您确定要删除该条信息吗？")) {
			return;
		}
	 $.post("v_trash.do", {
			"ids" : id
		}, function(data) {
			if(data.result){
				$("#jvForm").attr("action","v_list.do");
				$("#jvForm").submit();
			}else{
				alert("请先登录");
			}
		}, "json");
}
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "cmsMessage.function"/> - <@s.m "cmsMessage.sendMessage"/></div>
	<form class="ropt">
		<!-- 返回 -->
		<input type="hidden" name="box" value="${box}"/>
		<input class="return-button" type="submit" value="<@s.m "global.backToList"/>" onclick="this.form.action='v_list.do';"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<@p.form id="jvForm" action="v_list.do" >

<@p.td  label="cmsMessage.sendUser" colspan="2" width="50">
	${message.msgSendUser.username!}
</@p.td>
<@p.tr/>

<@p.td  label="cmsMessage.sendTime" colspan="2" width="50">
	${message.sendTime?string('yyyy-MM-dd HH:mm:ss')}
</@p.td>
<@p.tr/>

<@p.td colspan="2" width="50" label="cmsMessage.title">
	${message.titleHtml!}
</@p.td>
<@p.tr/>
<@p.td colspan="2" width="50" label="cmsMessage.content">
	${message.contentHtml!}
</@p.td>
<@p.tr/>
<@p.td colspan="2">
	 <input name="box" type="hidden" value="${box!}" id="box"/>
	 	 <input name="nextUrl" type="hidden" value="v_list.do?box=1"/>
         <input name="id" type="hidden" value="${message.id!}"/>
         <input name="msg" type="hidden" value="${message.titleHtml!}<@s.m 'cmsMessage.trashSuccess'/>"/>
	     <#if box??>
	     	<#if box!=3>
	     		<input class="del-button" type="button" value="<@s.m 'global.delete'/>" onclick="trash('${message.id!}')"/>
			<#else>
	     		<input type="button" onclick="emptySingle('${message.id!}')" value="<@s.m 'cmsMessage.trash'/>"/>
	     	</#if>
	     </#if>
</@p.td>

</@p.form>
</div>
</body>
</html>